package org.example.controller;

import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.example.service.DownloadService;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @description
 * @DateTime: 2024/1/22 17:16
 */
@CrossOrigin
@RestController
@RequestMapping("download")
@Api(tags = "下载管理")
public class DownloadController {
    @Resource
    private DownloadService downloadService;

    @GetMapping("/downSDRegin")
    @ApiOperation("下载山东省市区")
    @ApiOperationSupport(order = 1)
    public void downloadLevel(){
        downloadService.findName();
    }
}
